﻿// Notepad+
// (C) 2014 Jan Kowalewicz <kowalewicz.jan@live.de>
//
// AboutWindow.cs
// This file is part of the Notepad+ Project
//
// THIS PROJECT IS PUBLISHED UNDER THE TERMS OF THE LGPLv3

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace notepadplus.Dialogs
{
    public partial class AboutWindow : Form
    {
        public AboutWindow()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            AboutThirdparty thrd = new AboutThirdparty();
            thrd.Show(this);
        }

        private void label17_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show(this, "You need an network connection to download/install updates.", "Updater", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == System.Windows.Forms.DialogResult.OK)
            {
                // TODO: open update-search
            }
            else
            {
                MessageBox.Show("You can install updates later, too :) Only click on '?' > 'Check for updates...' or get back to this dialog!");
            }
        }
    }
}
